{include file=header.html}
<script type="text/javascript">
//<!CDATA[
$(function(){
$('#partner_form').validate({
            errorPlacement: function(error, element){
                $(element).next('.field_notice').hide();
                if($(element).parent().parent().is('b'))
                {
                    $(element).parent().parent('b').next('.explain').hide();
                    $(element).parent().parent('b').after(error);
                }
                else
                {
                    $(element).after(error);
                }
            },
        rules : {
            content : {
                required   : true
            },
            captcha : {
                required : true,
                remote   : {
                    url : 'index.php?app=captcha&act=check_captcha',
                    type: 'get',
                    data:{
                        captcha : function(){
                            return $('#captcha1').val();
                        }
                    }
                }
            }
        },
        messages : {
            content : {
                required : '{$lang.eror_name}'
            },
            captcha : {
                required : '{$lang.captcha_required}',
                remote   : '{$lang.captcha_error}',
            }
        }
    });
</script>
	<div id="wrapper">
		{include file=curlocal.html}
		<div class="content content-wrap">
			<div id="com_main_product">
				<div id="product_profile_photos">
					<div id="big_social_wrapper">
						<a href="{$goods._images.0.thumbnail|default:$default_image}" rel="imgdetail" title="{$goods.goods_name|escape}">
							<img id="product_large" src="{$goods._images.0.thumbnail|default:$default_image}" alt="{$goods.goods_name|escape}"/>
						</a>
					</div>
					<ul class="thumbnails">
					 <!--{foreach from=$goods._images item=goods_image name=fe_goods_image}-->
						<li>
							<div class="thumb thumb_92">
								<img src="{$goods_image.thumbnail}" alt="dfsd"/>
								<a class="cropper" href="{$goods_image.thumbnail}" rel="imgdetail">{$goods.goods_name|escape}</a>
							</div>
						</li>
					<!--{/foreach}-->
					</ul>
					<div class="clear"></div>
					<div class="product_description">
						chi tiết sản phẩm ở đây
					</div>
				</div>
				<div id="comment">
					<h4 class="heading_sub">
						{$lang.Comment}
					</h4>
					<ul class="comment_list">
					 <!--{foreach from=$qa_info item=qainfo}-->
						<li class="post">
							<div class="post_thumb">
								<div class="thumb thumb_57">
									<img src="<!--{if $profile.portrait}-->{$profile.portrait}?{$random_number}<!--{else}-->{$site_url}/data/system/default_user_portrait.gif<!--{/if}-->"/>
									<a href="" class="cropper">mrcanon</a>
								</div>
							</div>
							<div class="post_body">
									<p class="post_user">
										<a href="{url app=store&id=$store.store_id}"><!-- {if $qainfo.user_name} -->{$qainfo.user_name}<!--{else}-->{$lang.guest}<!-- {/if} --></a>
										<span class="meta">
											<span>{$qainfo.time_post|date:complete}</span>
										</span>
									</p>
									<p>
									   {$qainfo.question_content|escape|nl2br}
									</p>
							</div>
							<div class="clear"></div>
						</li>
						 <!-- {foreachelse} -->
					    <li class="post"">
					        <span class="light" style="font-weight:bold; font-size:14px">{$lang.no_records}</span>
					    </li>
					    <!--{/foreach}-->
						
					</ul>
					<ul>
						<li class="post entry">
						   <form method="post" action="index.php?app={$smarty.get.app}<!--{if $smarty.get.act}-->&amp;act={$smarty.get.act}<!--{elseif $smarty.get.app eq 'goods'}-->&amp;act=qa<!--{/if}-->&amp;id={$smarty.get.id}"  enctype="multipart/form-data" id="partner_form">
							 <!--{if !$guest_comment_enable and !$visitor.user_id}-->
					            {$lang.login_to_comment}
					        <!--{else}-->
						   <div class="post_thumb">
								<div class="thumb thumb_57">
									<img src="<!--{if $profile.portrait}-->{$profile.portrait}?{$random_number}<!--{else}-->{$site_url}/data/system/default_user_portrait.gif<!--{/if}-->"/>
									<a href="" class="cropper">mrcanon</a>
								</div>
							</div>
							<div class="post_body">
									<textarea id="comment_body" rows="20" name="content" style="text-align: left;">
									</textarea>
								
								<div class="clear"></div>
								 <span><input type="hidden" class="text" name="email" value="{$email}" /></span>
								 <!--capcha hinh anh-->
								    <span>{$lang.captcha}: </span>
						            <span>
						                <input type="text" name="captcha" class="text" id="captcha1" />
                                        <a href="javascript:change_captcha($('#captcha'));" class="renewedly"><img id="captcha" src="index.php?app=captcha&amp;{$random_number}" /></a>
						            </span>
						        <!--ket thuc-->
								<p class="instructions">
									No HTML.  Hyperlinks will be made clickable automatically. To embed images or videos, simply type the url. Please use common sense when posting.
								</p>
								<p>
									<input id="create_watch" type="checkbox" value="1" checked="checked" name="watch"/>
									<label for="create_watch">Nhận thông báo khi có trả lời cho chủ đề này</label>
								</p>
							</div>
							<div id="submitButton">
								<input type="image" src="{res file=images/btn_post.png}">
							</div>
							<!--{/if}-->
							</form>
						</li>
					</ul>
				</div>
			</div>
			<div id="product_profile_sidebar">
				<div id="product_profile_stats">
					<div class="info_common">
						<div class="add_view">
							<h4 class="full_name_goods">{$goods.goods_name|escape}</h4>
							<div class="price_sell yes_promotional">{$lang.price_sell}: <span>{$goods._specs.0.price|price}</span></div>
							<div class="price_promotional">{$lang.price_promotional}: <span>{$goods._specs.0.price|price}</span><cite> ({$lang.yes_vat})</cite></div>
							<div class="info">{$lang.brand}: {$goods.brand|escape}</div>
							<div class="info">{$lang.goods_origin}: Trung Quốc</div>
							<div class="info">{$lang.warranty}: 12 tháng</div>
						   <div class="info">Phạm vi bán hàng:{$store.region_name|escape}</div>
							<div class="info">{$lang.promotional}: Các sản phẩm khuyến mại đi kèm, bao gồm túi sách, đồ sửa chữa, áo mưa</div>
							<form method="post" action="">
								<div id="product-options" class="options">
									<select class="variant_dropdown">
										<option value="1222">Đặc điểm 1</option>
										<option value="1222">Đặc điểm 2</option>
										<option value="1222">Đặc điểm 3</option>
										<option value="1222">Đặc điểm 4</option>
									</select>
								</div>
								<input class="btn_add_to_cart" type="submit" value="{$lang.buy_now}" name="submit">
							</form>
						</div>
						<div class="clear"></div>
					</div>
					<div class="merchant_details">
						<a href="{url app=store&id=$store.store_id}" id="store_thumb_link">
							<img src="{$goods._images.0.thumbnail|default:$default_image}" id="store_thumb" alt="">
						</a>
						<h4>{$store.store_name|escape}</h4>
						<ul class="merchant_links_list">
							<li>
								<a href="{url app=store&id=$store.store_id}" class="merchant_link visit_storefront">{$lang.look_store}</a>
							</li>
							<li>
								<a href="{url app=store&id=$store.id}" class="merchant_link visit_storeprofile">{$lang.store_profile}</a>
							</li>
							<li>
								<a href="{url app=store&id=$store.id}" class="merchant_link contact_storefront">{$lang.contact}</a>
							</li>
						</ul>
					</div>
					<div class="recent_fans product_fans">
						<a href="#" onclick="javascript:void(0)" id="favorite_button" class="btn_fan_this prod_button">{$lang.like_goods}</a>
						<h4 id="favorite_count30">
							3<span> fans</span>
						</h4>
						<ul id="fan_list_holder">
							<li>
								<a href="" title="neverfail81">
									<img src="data/files/store_1583/goods_108/small_201104270801481135.jpg"/>
								</a>
							</li>
							<li>
								<a href="" title="neverfail81">
									<img src="data/files/store_1583/goods_108/small_201104270801481135.jpg"/>
								</a>
							</li>
							<li>
								<a href="" title="neverfail81">
									<img src="data/files/store_1583/goods_108/small_201104270801481135.jpg"/>
								</a>
							</li>
						</ul>
						<div class="clear"></div>
					</div>
					<div class="product_tags">
						<h5 class="stat_title">{$lang.input_keywords}</h5>
						<ul>
							<li>
								<a href="" title="">ruou ngoai</a>
							</li>
							<li>
								<a href="" title="">vang bac</a>
							</li>
							<li>
								<a href="" title="">cho mua sam</a>
							</li>
							<li>
								<a href="" title="">vang bac</a>
							</li>
						</ul>
						<div class="clear"></div>
					</div>
					<div class="short_url">
						<h5 class="stat_title">{$lang.view_on_seller}</h5>
						<div class="product_selt>">
							<a href="{url app=store&id=$store.store_id}">http://localhost/phienban3/{url app=store&id=$store.store_id}</a>
						</div>
						<div class="clear"></div>
					</div>
					<div class="short_url">
						<h5 class="stat_title">{$lang.share_this}</h5>
						<span id="clippy_notice"></span>
						<input type="text" id="short_url_box" onclick="this.focus();this.select();" value="http://localhost/phienban3/{url app=store&id=$store.store_id}"/>
						<span class="clippy">
							
						</span>
						<div class="clear"></div>
					</div>
					<div id="product_profile_share_links">
						<div id="fb-like-wrapper">
							<div>
									
							</div>
						</div>
					</div>
				</div>
				<div id="product_profile_similar_products">
					<h4 class="heading_sub">{$lang.similar_products}</h4>
					<div class="gallery">
					 <!--{foreach from=$cate_goods item=cat_goods}-->
						<div class="product_horiz">
							<div class="thumb thumb_112">
								<img src="{$cat_goods._images.0.thumbnail|default:$default_image}" alt=""/>
								<span class="item_price"><span>{$cat_goods.price|price}</span></span>
								<a href="{url app=gdetail&id=$cat_goods.goods_id}" class="cropper">Ten san pham</a>
							</div>
							<div class="item_details">
								<p class="top_detail">
									<a href="{url app=gdetail&id=$cat_goods.goods_id}" title="">{$cat_goods.goods_name|escape}</a>
								</p>
								<p class="sub_detail">
									{$lang.by_objects}: <a href="" style="font-width:bold; font-size:12px">{$cat_goods.brand|escape}</a>
								</p>
								<p class="description">
								Tạo thêm phần tóm tắt sản phẩm 
								</p>
								<div class="stats shopping">
									<span class="fans">
										<a href="">8</a>
									</span>
									<span class="buy_now">
										<a href="">{$lang.buy_now}</a>
									</span>
								</div>
							</div>
							<div class="clear"></div>
						</div>
                    <!--{/foreach}-->
					</div>
				</div>
			</div>
			<div class="clear"></div>
		</div>
		{include file=footer.html}
	</div>